/**
 * 作者: wgx
 * 日期: 2024-11-13 11:10:09
 * 备注: 派对配置表
 */
package com.motu.monstercity.server.game.commondata.feast;

import io.vertx.core.json.JsonObject;

public class FeastMainModel {
    protected int id; // id
    protected int type; // 派对类型 (1-普通派对，2-盛典派对)
    protected int guestNum; // 派对位置
    protected long durationTime; // 持续时长(秒)
    protected String costItem; // 举办消耗的道具

    public FeastMainModel() {
    }

    public FeastMainModel(JsonObject obj) {
        id = obj.containsKey("id") ? obj.getInteger("id") : 0;
        type = obj.containsKey("type") ? obj.getInteger("type") : 0;
        guestNum = obj.containsKey("guest_num") ? obj.getInteger("guest_num") : 0;
        durationTime = obj.containsKey("duration_time") ? obj.getLong("duration_time") : 0;
        costItem = obj.containsKey("cost_item") ? obj.getString("cost_item") : "";
    }

    public int getId() {
        return id;
    }

    public int getType() {
        return type;
    }

    public int getGuestNum() {
        return guestNum;
    }

    public long getDurationTime() {
        return durationTime;
    }

    public String getCostItem() {
        return costItem;
    }

}
